package com.xebest.web.mapper.write;

import com.xebest.web.form.XeVenInquirySheetForm;
import com.xebest.web.model.XeVenInquirySheetEntity;
import com.xebest.web.view.XeVenInquirySheetView;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XeVenInquirysheetWriteMapper {

    /**
     * 修改询价单信息
     *
     * @author Wangyp
     */
    int updateByPrimary(XeVenInquirySheetForm record);

    /**
     * 根据询价单号  批量修改询价单状态
     *
     * @author Wangyp
     */
    int batchUpdateSheet(XeVenInquirySheetForm xeVenInquirySheetForm) throws Exception;


    /**
     * 单个插入询价单  用于询价单同步接口使用
     *
     * @author 李贝贝
     */
    int insertInquirySheet(XeVenInquirySheetEntity entity);

    /**
     * 批量插入询价单  用于询价单同步接口使用
     *
     * @author Wangyp
     */
    int batchInsertInquirySheet(List<XeVenInquirySheetEntity> entityList) throws Exception;

    /**
     * 批量修改询价单
     *
     * @author Wangyp
     */
    int batchUpdateInquiry(List<XeVenInquirySheetEntity> entityList) throws Exception;


    XeVenInquirySheetView listXeVenInquiryByCode(@Param("inquirysheetCode") String inquirysheetCode);


}